package com.dreamwhale.machinery.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户等级记录表
 * </p>
 *
 * @author Author
 * @since 2020-07-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("yx_user_level")
public class YxUserLevel implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户uid
     */
    private Integer uid;

    /**
     * 等级vip
     */
    private Integer levelId;

    /**
     * 会员等级
     */
    private Integer grade;

    /**
     * 过期时间
     */
    private LocalDateTime validTime;

    /**
     * 是否永久
     */
    private Boolean isForever;

    /**
     * 商户id
     */
    private Integer merId;

    /**
     * 0:禁止,1:正常
     */
    private Boolean status;

    /**
     * 备注
     */
    private String mark;

    /**
     * 是否已通知
     */
    private Boolean remind;

    /**
     * 是否删除,0=未删除,1=删除
     */
    private Boolean isDel;

    /**
     * 添加时间
     */
    private LocalDateTime addTime;

    /**
     * 享受折扣
     */
    private Integer discount;


}
